package com.lucky.ebidding.service.interfaces;

import com.lucky.ebidding.dto.TbAndZbDTO;
import com.lucky.ebidding.model.PublishInfo;
import com.lucky.ebidding.model.User;

import java.util.List;

/**
 * ClassName:PublishServiceI
 * Package:com.lucky.ebidding.service.interfaces
 * Description:
 *
 * @Date:2020/5/21 14:48
 * @Author:857251389@qq.com
 */
public interface PublishServiceI {

    List<PublishInfo> selectAll();

    /**
     * 更新中标发布表的状态，更新招标项目表中的开标状态，在审核通过时向
     * 投标人发送开标通知
     * @param status
     * @param publishId
     * @param zbId
     * @param tbUserId
     * @param user
     * @return
     */
    int setStatus(Integer status,Integer publishId,Integer zbId,Integer tbUserId, User user);

    TbAndZbDTO selectZbInfoAndTbInfoByPublishId(Integer publishId);

    TbAndZbDTO selectZbInfoAndTbInfoByzbId(Integer zbId);
}
